-- GENERATED SPELL FOR [Naxxramas Necrolord] --


function spell0_27289(pUnit, Event) --@Chaos Bolt,n/a--
pUnit:FullCastSpellOnTarget(51287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27289', 3000, 1)
end

function Sorts_27289(pUnit, Event)
local choix_sorts_27289 = math.random(0, 0)
if choix_sorts_27289 == 0 then
pUnit:RegisterEvent('spell0_27289', 1, 1)
end
end

function mob27289_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27289', math.random(1500, 3000), 1)
end

function mob27289_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27289_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27289_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27289, 1, 'mob27289_Action')
RegisterUnitEvent(27289, 2, 'mob27289_Leave')
RegisterUnitEvent(27289, 3, 'mob27289_Kill')
RegisterUnitEvent(27289, 4, 'mob27289_Die')
